home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / Converse / Source / Preferences.h < prev    next >
Text File  |  1995-12-18  |  2KB  |  60 lines

  1. //** Craig Laurent
  2. #import <appkit/appkit.h>
  3. #import <eointerface/eointerface.h>
  4.  
  5. /* Preferences - an Object that maintains all application preference information.  The user can choose how to be alerted about an incoming message.
  6. alertAudio    - a sound will play.
  7. alertIcon    - the icon will "flash".
  8. alertWindow    - the Window will be brought to the front.
  9. alertApplication    - the Application will be made active.
  10. The user can choose what information about users will be reflected in their log.
  11. discloseId    - displays user's ID.
  12. discloseName    - displays user's real name.
  13. discloseMachine    - displays user's machine name.  */
  14.  
  15. @interface Preferences:NSObject
  16. {
  17.     BOOL alertAudio;
  18.     BOOL alertIcon;
  19.     BOOL alertWindow;
  20.     BOOL alertApplication;
  21.  
  22.     BOOL discloseID;
  23.     BOOL discloseName;
  24.     BOOL discloseMachine;
  25.  
  26.     NSString    *soundFile;
  27.     NSString    *addressFile;
  28. }
  29.  
  30. - init;
  31. - (void)dealloc;
  32.  
  33. //** instance methods
  34. - (BOOL)alertAudio;
  35. - (void)setAlertAudio:(BOOL)audio;
  36. - (BOOL)alertIcon;
  37. - (void)setAlertIcon:(BOOL)icon;
  38. - (BOOL)alertWindow;
  39. - (void)setAlertWindow:(BOOL)window;
  40. - (BOOL)alertApplication;
  41. - (void)setAlertApplication:(BOOL)application;
  42.  
  43. - (BOOL)discloseID;
  44. - (void)setDiscloseID:(BOOL)dID;
  45. - (BOOL)discloseName;
  46. - (void)setDiscloseName:(BOOL)dName;
  47. - (BOOL)discloseMachine;
  48. - (void)setDiscloseMachine:(BOOL)dMachine;
  49.  
  50. - (NSString*)soundFile;
  51. - (void)setSoundFile:(NSString*)file;
  52. - (NSString*)addressFile;
  53. - (void)setAddressFile:(NSString*)file;
  54.  
  55. //** method types
  56. - (void)loadPreferences;
  57. - (void)savePreferences;
  58.  
  59. @end
  60.